package com.pzsh.service.impl;

import com.pzsh.entity.QuestionAnswerEntity;
import com.pzsh.mapper.QuestionAnswerMapper;
import com.pzsh.mapper.UserMapper;
import com.pzsh.service.IQuestionAnswerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description:
 * @Param:
 * @return:
 * @Author: yp
 * @Date: 2020/02/19
 */
@Slf4j
@Service
@Transactional(propagation = Propagation.SUPPORTS)
public class QuestionAnswerServiceImpl implements IQuestionAnswerService {
    @Autowired
    private UserMapper userMapper;
    @Autowired
    private QuestionAnswerMapper questionAnswerMapper;

    @Override
    public List<QuestionAnswerEntity> selectQuestionAll() {
        return questionAnswerMapper.selectAll();
    }
}
